const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const NoticeCategorySchema = new Schema({
  categoryId: { type: String, required: true, unique: true },
  name: { type: String, required: true },
  createTime: { type: Date, default: Date.now },
  updateTime: { type: Date, default: Date.now },
  flag: { type: Boolean, default: true }
});

module.exports = mongoose.model('NoticeCategory', NoticeCategorySchema);